package dispatcher.group.gui.listener;

import java.awt.event.ActionEvent;


/**
 * This class encapsulate the event where the floors gets initialized and populate for the first time
 * @author Caleb
 *
 */
public class FloorInitializeEvent extends ActionEvent {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1846897234264169224L;
	private int maxFloors;
	
	/**
	 * The main constructor
	 * @param source The source of the event
	 * @param maxFloors The number of floors to be created
	 */
	public FloorInitializeEvent(Object source, int maxFloors) {
		super(source, 0, "");
		this.maxFloors = maxFloors;
	}

	/**
	 * This method returns the number of floors to be created
	 * @return Returns the number of floors to be created
	 */
	public int getMaxFloors(){
		return this.maxFloors;
	}
}
